package cn.gzjp.modules.dt.entity;


import cn.gzjp.common.persistence.DataEntity;
import cn.gzjp.common.utils.excel.annotation.ExcelField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.Date;

/**
 * 驾考用户Entity
 * @author zengcp
 * @version 2018-02-24
 */
public class DtUser extends DataEntity<DtUser> {
	
	private static final long serialVersionUID = 1L;
	private Integer testScore;		// test_score
	private Integer testSn;		// 练习序号
	private Integer testCorrectCount;		// 练习正确数
	private Integer testCount;		// 练习答题数
	private Integer times;		// 考试耗时秒数
	private Integer examScore;		// 考试得分
	private Integer examSn;		// 考试序号
	private Integer examCorrectCount;		// 考试正确数
	private Integer examCount;		// 考试答题数

	private String name;  // 名称
	private String headImg;//会员头像

	private Date examTime;//考试提交答案时间

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getHeadImg() {
		return headImg;
	}

	public void setHeadImg(String headImg) {
		this.headImg = headImg;
	}
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	public Date getExamTime() {
		return examTime;
	}

	public void setExamTime(Date examTime) {
		this.examTime = examTime;
	}

	public DtUser() {
		super();

		this.setTestScore(0);
		this.setTestSn(1);
		this.setTestCorrectCount(0);
		this.setTestCount(0);
		this.setTimes(0);
		this.setExamScore(0);
		this.setExamCorrectCount(0);
		this.setExamSn(1);
		this.setExamCount(0);
	}

	public DtUser(String id){
		super(id);
	}
	@JsonIgnore
	@ExcelField(title="test_score", align=2, sort=1)
	public Integer getTestScore() {
		return testScore;
	}

	public void setTestScore(Integer testScore) {
		this.testScore = testScore;
	}
	@JsonIgnore
	@ExcelField(title="练习序号", align=2, sort=2)
	public Integer getTestSn() {
		return testSn;
	}

	public void setTestSn(Integer testSn) {
		this.testSn = testSn;
	}
	@JsonIgnore
	@ExcelField(title="练习正确数", align=2, sort=3)
	public Integer getTestCorrectCount() {
		return testCorrectCount;
	}

	public void setTestCorrectCount(Integer testCorrectCount) {
		this.testCorrectCount = testCorrectCount;
	}
	@JsonIgnore
	@ExcelField(title="练习答题数", align=2, sort=4)
	public Integer getTestCount() {
		return testCount;
	}

	public void setTestCount(Integer testCount) {
		this.testCount = testCount;
	}
	@JsonIgnore
	@ExcelField(title="考试耗时秒数", align=2, sort=5)
	public Integer getTimes() {
		return times;
	}

	public void setTimes(Integer times) {
		this.times = times;
	}
	
	@ExcelField(title="考试得分", align=2, sort=6)
	public Integer getExamScore() {
		return examScore;
	}

	public void setExamScore(Integer examScore) {
		this.examScore = examScore;
	}
	
	@ExcelField(title="考试序号", align=2, sort=7)
	public Integer getExamSn() {
		return examSn;
	}

	public void setExamSn(Integer examSn) {
		this.examSn = examSn;
	}
	@JsonIgnore
	@ExcelField(title="考试正确数", align=2, sort=8)
	public Integer getExamCorrectCount() {
		return examCorrectCount;
	}

	public void setExamCorrectCount(Integer examCorrectCount) {
		this.examCorrectCount = examCorrectCount;
	}
	@JsonIgnore
	@ExcelField(title="考试答题数", align=2, sort=9)
	public Integer getExamCount() {
		return examCount;
	}

	public void setExamCount(Integer examCount) {
		this.examCount = examCount;
	}
	
}